import service from "../uitils/request"

export const needCheckAPI = () => {
    return service({
        url: "captcha/needCheck",
        method: 'GET'
    })
}

export const loginApi = (data) => {
    return service({
        url: "/login",
        method: 'POST', data
    })
}
export const logoutApi = () => {
    return service({
        url: "/logout",
        method: 'GET'
    })
}

export const getLoginUserApi = () => {
    return service({
        url: "/getLoginUser",
        method: 'GET'
    })
}

export const changePwdApi = (data) => {
    return service({
        url: "/changePwd",
        method: 'POST', data
    })
}